package cn.itcast.zt.java8.contended;

import lombok.Data;

/**
 * 同一 groupName 在同一缓存行
 * 高版本JDK中已移除 不建议使用
 * create by zhangtian105 on 2021/6/8
 */
@Data
public class ContendedGroupData {
    //@sun.misc.Contended("group1")
    private int value;
    //@sun.misc.Contended("group1")
    private long modifyTime;
    //@sun.misc.Contended("group2")
    private boolean flag;
    //@sun.misc.Contended("group3")
    private long createTime;
    //@sun.misc.Contended("group3")
    private char key;
}
